package com.nandasoft.njuerp.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.nandasoft.njurep.substance.bean.WareStoreBean;
import com.nandasoft.njurep.substance.service.WareStoreService;

/**
 * 期初事物请求控制器
 * 
 * @author Administrator
 *
 */
@Controller
@RequestMapping(value="/qcsw")
public class QcswController {
	// 记录日志
	private Logger logger = Logger.getLogger(QcswController.class);
	
	// 注入仓库服务
	@Autowired
	private WareStoreService wareStoreService;
	
	/**
	 * 添加期初事物
	 * 
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping(value = "/addQcsw", method = { RequestMethod.POST })
	public void addQcsw(HttpServletRequest request,
			HttpServletResponse response) throws Exception{
		WareStoreBean wareStoreBean = new WareStoreBean();
		this.wareStoreService.insertWareStoreInfo(wareStoreBean);
	}
	
	/**
	 * 添加明细
	 * 
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping(value = "/addQcswmx", method = { RequestMethod.POST })
	public void addQcswmx(HttpServletRequest request,
			HttpServletResponse response) throws Exception{
		
	}
	
	/**
	 * 更新期初事物
	 * 
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping(value = "/updateQcsw", method = { RequestMethod.POST })
	public void updateQcsw(HttpServletRequest request,
			HttpServletResponse response) throws Exception{
		
	}
	
	/**
	 * 删除期初事物
	 * 
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping(value = "/delQcsw", method = { RequestMethod.POST })
	public void delQcsw(HttpServletRequest request,
			HttpServletResponse response) throws Exception{
		
	}
	
	/**
	 * 删除明细
	 * 
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping(value = "/delQcswmx", method = { RequestMethod.POST })
	public void delQcswmx(HttpServletRequest request,
			HttpServletResponse response) throws Exception{
		
	}
}
